home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Icon / c / SetRadios < prev    next >
Text File  |  1995-07-08  |  652b  |  18 lines

  1. #include "DeskLib:Wimp.h"
  2. #include "DeskLib:WimpSWIs.h"
  3. #include "DeskLib:Icon.h"
  4.  
  5. extern void Icon_SetRadios(window_handle window,
  6.                            icon_handle first, icon_handle last,
  7.                            icon_handle onradio)
  8. /*
  9.  * Pass in a group of icons (specified by lowest-numbered icon and
  10.  * highest-numbered icon), and the icon from this group that you want
  11.  * selected. All icons except the one you want selected will be deselected.
  12.  */
  13. {
  14.   while (first <= last)
  15.     Icon_Deselect(window, first++);       /* Turn off all between first,last */
  16.   Icon_Select(window, onradio);           /* Turn on the requested one       */
  17. }
  18.